7.8
HIGH CVSS 3.1
CVE-2023-40022
Rizin C++ Demangling Integer Overflow Vulnerability
Description

Rizin is a UNIX-like reverse engineering framework and command-line toolset. Versions 0.6.0 and prior are vulnerable to integer overflow in `consume_count` of `src/gnu_v2/cplus-dem.c`. The overflow check is valid logic but, is missing the modulus if the block once compiled. The compiler sees this block as unreachable code since the prior statement is multiplication by 10 and fails to consider overflow assuming the count will always be a multiple of 10. Rizin version 0.6.1 contains a fix for the issue. A temporary workaround would be disabling C++ demangling using the configuration option `bin.demangle=false`.

INFO

Published Date :

Aug. 24, 2023, 11:15 p.m.

Last Modified :

Nov. 21, 2024, 8:18 a.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2023-40022 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Rizin rizin
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
CVSS 3.1 HIGH [email protected]
Solution
Update Rizin to address an integer overflow vulnerability.
  • Update Rizin to version 0.6.1 or later.
  • If an update is not immediately possible, disable C++ demangling using the configuration option `bin.demangle=false`.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-40022 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2023-40022 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-40022 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-40022 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/rizinorg/rizin/pull/3753
    Added Reference https://github.com/rizinorg/rizin/security/advisories/GHSA-92h6-wwc2-53cq
    Added Reference https://github.com/rizinorg/rz-libdemangle/blob/main/src/gnu_v2/cplus-dem.c#L419
    Added Reference https://github.com/rizinorg/rz-libdemangle/commit/51d016750e704b27ab8ace23c0f72acabca67018
    Added Reference https://github.com/rizinorg/rz-libdemangle/pull/54
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Aug. 30, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Changed Reference Type https://github.com/rizinorg/rizin/pull/3753 No Types Assigned https://github.com/rizinorg/rizin/pull/3753 Patch
    Changed Reference Type https://github.com/rizinorg/rizin/security/advisories/GHSA-92h6-wwc2-53cq No Types Assigned https://github.com/rizinorg/rizin/security/advisories/GHSA-92h6-wwc2-53cq Patch, Vendor Advisory
    Changed Reference Type https://github.com/rizinorg/rz-libdemangle/blob/main/src/gnu_v2/cplus-dem.c#L419 No Types Assigned https://github.com/rizinorg/rz-libdemangle/blob/main/src/gnu_v2/cplus-dem.c#L419 Product
    Changed Reference Type https://github.com/rizinorg/rz-libdemangle/commit/51d016750e704b27ab8ace23c0f72acabca67018 No Types Assigned https://github.com/rizinorg/rz-libdemangle/commit/51d016750e704b27ab8ace23c0f72acabca67018 Patch
    Changed Reference Type https://github.com/rizinorg/rz-libdemangle/pull/54 No Types Assigned https://github.com/rizinorg/rz-libdemangle/pull/54 Patch
    Added CPE Configuration OR *cpe:2.3:a:rizin:rizin:*:*:*:*:*:*:*:* versions up to (excluding) 0.6.1
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.07 }} 0.01%

score

0.22892

percentile